from random import randint


# for i in range(1,10+1,2):
#     print(i, end="\t")


#打印100以内能被3整除的数字
# for i in range(1,100+1):
#     if i%3==0 :
#         print(i,end="\t")


#猜数字，产生随机数
# num=randint(1,100)
# while True:
#     guess=int(input("请输入一个数字："))
#     if guess>num:
#         print("太大了")
#     elif guess<num:
#         print("太小了")
#     else:
#         print("猜对了")
#         break


# for i in range(1,100+1):
#     #if i%7 ==0 or str(i).find('7') !=-1:
#     # if i % 7 == 0 or str(i).find('7') >0:
#     if i % 7 == 0 or '7' in str(i) !=-1:
#         print(i,end="\t")


#打印一个菱形
# for i in range(1,11+1,2):
#     print(("*" * i).center(11))
# for i in range(9,0,-2):
#     print(("*" * i).center(11))



# # 打印菱形
# for i in range(1,11+1,2):
#     print(("*" * i).center(11))
# for i in range(9,0,-2):
#     print(("*" * i).center(11))


# 打印水仙花数
# for i in range(100,1000+1):
#     a=i//100
#     b=(i//10)%10
#     c=i%10
#     if a**3+b**3+c**3==i:
#         print(i)


#打印九九乘法表
# for i in range(1,10+1):
#     for j in range(1,i+1):
#         print("%d*%d=%d" % (i,j,i*j),end="\t")
#     print()


#打印斐波那契数列前39列
# def fib(n):
#     if n<=2:
#         return 1
#     else:
#         return fib(n-1)+fib(n-2)
# print(fib(39))
# for i in range(1,39+1):
#     print(fib(i),end="\t")


# #打印100以内的质数
# for i in range(2,100+1):
#     for j in range(2,i):
#         if i%j==0:
#             break
#     else:
#         print(i,end="\t")


#打印100以内的完数
# for i in range(1,100+1):
#     sum=0
#     for j in range(1,i):
#         if i%j==0:
#             sum+=j
#     if sum==i:
#         print(i,end="\t")

#

